package keter.ksf.model;

import keter.framework.model.base.BaseModel;
import org.apache.commons.lang3.StringUtils;

/**
 * Created by gu on 2017/3/2.
 */
public class Mapping extends BaseModel<Mapping>{

    public String getFirstValue(String key){
        return StringUtils.substringBefore(this.getStr(key),",") ;
    }

    public String getSecondValue(String key){
        return StringUtils.substringAfter(this.getStr(key),",") ;
    }

    @Override
    protected void validate() {

    }
}
